package com.xz.server.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * BookReq
 *
 * @author 28310
 * @since 2023-11-01 17:09
 */
@Data
public class BookReq {

    @ApiModelProperty("文章名称")
    @NotBlank(message = "文章名称不能为空")
    private String name;

    @ApiModelProperty("文章内容")
    @NotBlank(message = "文章内容不能为空")
    private String textContent;
}
